package Adapter;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;

/**
 * @ProjectName: 23种设计模式
 * @Package: Adaptee
 * @ClassName: Main
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/19 11:34
 * @Version: 1.0
 *
 * JAVA 访问数据库也是
 *
 * java -> [JDBC - ODBC - bridg] -> ODBC -> SQL Server
 */
public class Main {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("");
        InputStreamReader isr = new InputStreamReader(fis);//适配器
        BufferedReader br = new BufferedReader(isr);
        String line = br.readLine();
        while (line != null && !line.equals("")) {
            System.out.println(line);
        }
        br.close();
    }
}
